<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        button{
            background-color: orange;
            color: white;
            width: 130px;
            height: 100px;
            margin-left: 200px;
            margin-top: 300px;
            overflow: hidden;
            position: relative;
        }
        button::after{
            width: 150%;
            height:400%;
            content: '';
            background-color: #fff;
            display: block;/* 变成块可以设置宽高 */
            transform: skewY(25deg) translate(-21px,-460px);/*skew斜切*/
            transition: all .2s ease;
            position: absolute;
        }
        button:hover::after{
            transform: skew(25deg)translate(47px,-60px);
        }
        button:hover{
            color: orange;
        }
        button::before{
            content: '我要购买';
            width: 100%;
            height: 100%;
            position: absolute;
            display: none;
        } 
        button:hover::before{
            display: block;
            z-index: 10;
        }
    </style>
</head>
<body>
    <button>点我购买</button>
</body>
</html>